//============================================================================
// Copyright (C) 2010 Brett R. Jones
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================



package com.roguetreasure.destroytheworld;

class SoundMusicMgr
{	
	SoundMusicMgr()
	{
	}
	
    public void Startup( DestroyWorldActivity oActivity )
    {
    }
    
    public void Shutdown()
    {
    	
    }
	//! call to play music ( background sound )
	public void MusicPlay( String strSndFile ) 
    {
    }
	//! call to pause music
	public void MusicPause( String strSndFile ) 
    {
    }
	//! call to stop music
	public void MusicStop( String strSndFile ) 
    {
    }
	//! call to set music volume
	public void MusicSetVolume( float f32Volume ) 
    {
    }

};

/*

import at.bartinger.candroid.Constants;


public class BackgroundSound {

	private MediaPlayer aPlayer=new MediaPlayer();
	private float volume = 1;

	public BackgroundSound(Context context, String assetpath , boolean loop) {
		
		AssetFileDescriptor afd = null;
		try {
			afd = context.getAssets().openFd(assetpath);
			aPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
			aPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
			aPlayer.prepare();
			aPlayer.setLooping(loop);
		} catch (IOException e) {
			Log.e(Constants.LOGTAG, "Could not open " + assetpath);
		}
		
		
	}

	public void start(){
		if(!aPlayer.isPlaying()){
			aPlayer.start();
		}
	}

	public void stop(){
		if(aPlayer.isPlaying()){
			aPlayer.stop();
		}
	}
	
	public void setVolume(float v){
		aPlayer.setVolume(v, v);
		volume=v;
	}
	
	public void mute(){
		setVolume(0);
		volume=0;
	}
	
	public void toogleOn_Off(){
		if(volume == 0f) setVolume(1);
		else setVolume(0);
	}

}
*/
